const path = require("path");
const files = require.context("./", false, /\.vue$/);

let modules = {}
files.keys().forEach(key => {
   let name =  path.basename(key,'.vue')
   modules[name] = files(key).default || files(key);

});

export {modules}